//
//  TempViewController.m
//  王雷Sinoweibo
//
//  Created by wanglei on 16/11/27.
//  Copyright © 2016年 wanglei. All rights reserved.
//

#import "TempViewController.h"

@implementation TempViewController
//-(void)loadView{
//    
////    self.view = [[UIView alloc]initWithFrame:[UIScreen mainScreen].bounds];
//    self.view.backgroundColor = [UIColor redColor];
//}

- (void)viewDidLoad{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor brownColor];
    
    UIButton *btn = [[UIButton_Extesion alloc]initWithTitle:@"前往" titleColor:[UIColor orangeColor] backImageName:nil imageName:nil fontSize:16];
    [btn sizeToFit];
    [btn addTarget:self action:@selector(push) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
//    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"前往" style:UIBarButtonItemStylePlain target:self action:@selector(push)];
    
}

- (void)push{
    
    TempViewController *temp = [[TempViewController alloc]init];
    [self.navigationController pushViewController:temp animated:YES];
    
}
@end
